import axios from 'axios'
// 链接列表
let list = (params) => axios.get('/link/list', { params });
// 编辑友情链接
let edit = (id, data) => axios.put(`/link/${id}`, data);
// 删除友情链接
let remove = (id, params) => axios.delete(`/link/${id}`, { params });
// 添加友情链接
let create = (data) => axios.post('/link', data);

let start = (data)=>axios.post('/link/usable',data)


export default {
    list,
    edit,
    remove,
    create,
    start,
}